home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / database / randomfa / help.txt < prev    next >
Encoding:
Text File  |  1995-12-29  |  1.9 KB  |  46 lines

  1. This app was quickly written as an enhancement to the RECEDIT example (found in the VB Samples directory) to explore the benefits of using the Random File Access facilities available in native Visual Basic.
  2.  
  3. These appear to provide facilities which are particulary pertinent for:
  4.  
  5. a) small data files in the region of up to say 5000 records if partial matching searches are required (as in the 'Find Surname' procedure in this app) or
  6.  
  7. b) much larger files (up to 2 billion records) if you would be content with finding records simply by using the record number as the primary key or
  8.  
  9. c) small floppy disk data file storage (try creating a file 'Open File' on the floppy disk in drive A: and populating it with a 1000 records using the 'Create Random Data' button. Test the speed of access by navigating through the floppy disk data file. Then try doing the same using Access!)
  10.  
  11. Advantages:
  12.  
  13. 1 - No additional DLL / VBX / OCX required
  14. 2 - Small .EXE footprint
  15. 3 - Speed of operation
  16. 4 - Speed of access
  17. 5 - Easily maintained
  18.  
  19. Disadvantages:
  20.  
  21. 1 - Lack of support for dynamic indexes
  22. 2 - Fixed length records (redundant disk space)
  23.  
  24. The speed of access is quite refreshing when compaired to equivalent Jet Table access.
  25.  
  26. I also took this opportunity to share some ideas concerning structured Visual Basic Coding practices which embrace the following:
  27.  
  28. a) Variable naming standard
  29. b) Control naming standard
  30. c) Avoiding absolute references to Controls eg: txtData(n)
  31. d) Using the Tag property instead
  32. e) Using Windows API functions (setting tabs in a listbox, changing Control Box Menus)
  33. f) Retrieving data from listboxes
  34. g) Creating User Defined Data Types
  35. to name a few.
  36.  
  37. Hope you find a worthwhile application for Random File Access and the code in this app. If you do, perhaps you could return the favour and let us know of your successes.
  38.  
  39. Raymond Wood    -  XMas 1995 
  40.  
  41. 100037.37@compuserve (UK)
  42.  
  43.  
  44.  
  45.  
  46.